<<<<<<< HEAD
#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

void hanoi(int n ,char one, char two, char three)
{
	if(1==n)
	{
		printf("%c--->%c\n", one, three);
	}
	else
	{
		hanoi(n - 1, one, three, two);
		printf("%c--->%c\n", one, three);
		hanoi(n - 1, two,one,three);
	}
}
int main()
{
	int n = 0;
	scanf("%d", &n);
	hanoi(n, 'A', 'B', 'C');
	return 0;
}
=======
#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

void hanoi(int n ,char one, char two, char three)
{
	if(1==n)
	{
		printf("%c--->%c\n", one, three);
	}
	else
	{
		hanoi(n - 1, one, three, two);
		printf("%c--->%c\n", one, three);
		hanoi(n - 1, two,one,three);
	}
}
int main()
{
	int n = 0;
	scanf("%d", &n);
	hanoi(n, 'A', 'B', 'C');
	return 0;
}
>>>>>>> cb5b4dfb018ef79035a1947e2ed410772dc7ba74
